package generic06;

import java.util.ArrayList;
import java.util.Collection;

public class Demo02 {
    public static void main(String[] args) {
        Collection<String> c = new ArrayList<String>();
        c.add("abc");
        c.add("efg");

        for (String s : c) {

            System.out.println(s.length());
             // 3
            // 3
        }
    }
}
